﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Guest.Master" AutoEventWireup="true" 
CodeBehind="ComplianceChecker.aspx.cs" Inherits="ScrumLite.WebUx.ProjectsViews.ComplianceChecker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <%=ViewData.ProjectName%></h1>
    <hr />
    <h2>
        Compliance Checker</h2>
    <div  class ="panel">
    <br />
        <table class ="grid" width="90%" align="center">
            <tr>
                <th width="40%">
                Case checked
                </th>
                <th width="15%">
                Status
                </th>
                <th width="55%">
                Non conformities
                </th>
            </tr>
            <% foreach (ScrumLite.Services.Contracts.CheckStatus status in ViewData.Check)
               {
                   %> <tr><td> <span><%=status.PropertyChecked%></span></td>
                   <td align= "center">
                   <% if (status.Status)
                      {%>
                        <img alt="semaphore_green" src="/Content/images/semaphore_green.GIF" /></td><td>
                      <%}
                      else
                      {%>
                        <img alt="semaphore_red" src="/Content/images/semaphore_red.GIF" /></td><td>
                   <% }
                      foreach (string error in status.Errors)
                      {%>
                        <span class="verification"><%=error%></span><br />
                   <%} %>
                   </td></tr>
               <%}%>
        </table>
        <br />
        <br />
        <div>
            <p>
                <u>REFERENCES</u>
            </p>
            <p>
                <img alt="semaphore_green" src="/Content/images/semaphore_green.GIF" /> - Is Compliant
            </p>
            <p>
                <img alt="semaphore_red" src="/Content/images/semaphore_red.GIF" /> - Isn't Compliant (check Non conformities)
            </p>
        </div>
        <br />
        <br />
    </div>
</asp:Content>
